<?php
Loader::load("controller.php");
Loader::load(MODELDIR."member.php");
class IndexController extends Controller 
{
	public function indexAction()
	{
		echo "index";
		$this->view->renderPart("default","index","renderpart","bbb");
	}
	
	public function renderpartAction($f)
	{
		echo "aaaaa",$f;
	}
	
	public function init()
	{
		//echo "init";
	}
	
	public function jqsajaxAction()
	{
		require_once("ajax/jqSajax.class.php");
		$ajax=new jqSajax();
		$ajax->export("multiply");//export function
		$ajax->processClientReq();
		$this->view->ajax=$ajax;
		$this->display();
	}
	
	public function ajax()
	{
		echo "ajax";
	}
	
	function multiply($var1,$var2)
	{
		return array("username"=>"frchen","pword"=>"123456");
	}
	
}